package com.lqm.web.controller.admin;

import com.lqm.entity.admin.AdminConfig;
import com.lqm.util.WebConfigUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: CrowdFunding
 * @description
 * @author: lqm
 * @create: 2018-12-05 20:47
 */
@RestController
@RequestMapping("/admin")
public class WebConfigController {
    @RequestMapping("/getWebConfigInfo")
    public Map getWebConfigInfo(){
        HashMap<String, Object> map = new HashMap<String, Object>();

        AdminConfig adminConfig = WebConfigUtil.getAdminConfig("1");
        map.put("key",adminConfig);

        return map;
    }
}
